package com.xzl.xep.pojo;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

@Entity
@Table(name="dp_payment")
public class Payment extends IdEntity {
	
	public static final String CASH_WAY="CASH";
	public static final String BALANCE_WAY="BANLANCE";
	public static final String BANK_WAY="BANK";
	public static final String ALIPAY_WAY="ALIPAY";
	
	public static final String SALE_BUSINESS="SALE";
	public static final String CREDIT_BUSINESS="CREDIT";
	public static final String OTHER_BUSINESS="OTHER";

	@NotNull
	private Integer type;
	
	@NotBlank
	private String way;
	
	@NotBlank
	private String remark;
	
	public String getWay() {
		return way;
	}

	public void setWay(String way) {
		this.way = way;
	}

	@NotNull
	private Double money;
	
	@NotNull
	private Long companyId;
	
	@NotNull 
	private Long operatorId;
	
	private String operatorName;
	
	@NotBlank
	private String business;
	
	private Long customerId;
	
	private Double creditMoney;
	
	
	

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(Long operatorId) {
		this.operatorId = operatorId;
	}

	public String getOperatorName() {
		return operatorName;
	}

	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}

	public String getBusiness() {
		return business;
	}

	public void setBusiness(String business) {
		this.business = business;
	}

	public Long getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	public Double getCreditMoney() {
		return creditMoney;
	}

	public void setCreditMoney(Double creditMoney) {
		this.creditMoney = creditMoney;
	}
	
	
	
}
